package com.ltcode;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
@MapperScan("com.ltcode.mapper")
public class LtCodeApplication {
    public static void main(String[] args)
    {
        SpringApplication.run(LtCodeApplication.class, args);
    }

    @RequestMapping("/")
    public String index()
    {
        return "welcome to ltcode admin";
    }
}